﻿/*  
	========================================================================
	 awzBoxes Library
	
	 Homepage: http://www.awzhome.de/
	========================================================================
	
	This Source Code Form is subject to the terms of the Mozilla Public
	License, v. 2.0. If a copy of the MPL was not distributed with this
	file, You can obtain one at http://mozilla.org/MPL/2.0/.
   
	The Original Code is code of awzBoxes Library.

	The Initial Developer of the Original Code is Andreas Weizel.
	Portions created by the Initial Developer are
	Copyright (C) 2011-2012 Andreas Weizel. All Rights Reserved.
	
	Contributor(s): (none)
	
	========================================================================
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AWZhome.awzBoxes
{
	/// <summary>
	/// Event argument class for parent change events.
	/// </summary>
	/// <typeparam name="T"></typeparam>
	public class ParentChangedEventArgs<T> : EventArgs
	{
		/// <summary>
		/// Initializes a new event argument class for parent changes.
		/// </summary>
		/// <param name="oldParent">Old parent element.</param>
		/// <param name="newParent">New parent element.</param>
		public ParentChangedEventArgs(T oldParent, T newParent)
		{
			this.OldParent = oldParent;
			this.NewParent = newParent;
		}

		/// <summary>
		/// Returns the old parent element.
		/// </summary>
		public T OldParent
		{
			get;
			private set;
		}

		/// <summary>
		/// Returns the new parent element
		/// </summary>
		public T NewParent
		{
			get;
			private set;
		}
	}
}
